﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AirTickets
{
    public partial class BuscarVuelosForm : Form
    {
        public BuscarVuelosForm()
        {
            InitializeComponent();
        }

        private void btnSearch_Click(object sender, EventArgs e)
        {
            lbVuelos.DataSource = Operaciones.BuscarVuelos(tbDesde.Text, tbHasta.Text, dtpFecha.Value);
            lbVuelos.DisplayMember = "Descriptior";
        }

        private void lbVuelos_SelectedIndexChanged(object sender, EventArgs e)
        {
            
        }

        private void btnBook_Click(object sender, EventArgs e)
        {
            Billete b = new Billete((Vuelo)lbVuelos.SelectedItem, true);
        }
    }
}
